<template>
  <div class="errPage-container">
    <h1 class="text-jumbo text-ginormous">访问失败</h1>
    <h2>你没有权限去该页面</h2>
    <h4>如有问题请联系管理员</h4>
    <el-button icon="arrow-left" class="pan-back-btn" @click="back">返回</el-button>
  </div>
</template>

<script>
export default {
  name: 'Page401',
  data() {
    return {}
  },
  methods: {
    back() {
      if (this.$route.query.noGoBack) {
        this.$router.push({ path: '/dashboard' })
      } else {
        this.$router.go(-1)
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.errPage-container {
  width: 600px;
  padding: 100px;
  margin: 0 auto;
  .pan-back-btn {
    background: #008489;
    color: #fff;
    margin-left: 70px;
    border: none !important;
  }
  .text-jumbo {
    font-size: 40px;
    font-weight: 700;
    margin-left: 30px;
    color: #484848;
  }
  h4 {
    margin: 30px;
  }
}
</style>
